# for i in range(1,6):
#     if i == 3:
#         continue
#     print(f'吃第{i}个包子')


# for i in range(1,6):
#     if i == 3:
#         break
#     print(f"吃第{i}个包子")


theSum = 0
count = 0
while True:
    num = input("请输入一个数字(分号表示输入结束)：")
    if num == ";":
        break
    num = float(num)
    theSum += num
    count += 1
print(f"平均值为{theSum / count}")